package com.runfast.waimai.dao.model;

import java.io.Serializable;
import java.util.Date;

public class RunfastRefund implements Serializable {
    private Integer id;

    private Date create_time;

    private Date update_time;

    /**
     * 退款金额
     */
    private Integer amount;

    /**
     * 退款单号
     */
    private String refund_no;

    private String description;

    private String failure_code;

    private String failure_msg;

    /**
     * 订单号
     */
    private String order_no;

    /**
     * 退款状态
     */
    private Integer status;

    /**
     * 是否退款成功
     */
    private Boolean succeed;

    private Date time_succeed;

    private String transaction_no;

    private Integer order_id;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public RunfastRefund withId(Integer id) {
        this.setId(id);
        return this;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public RunfastRefund withCreate_time(Date create_time) {
        this.setCreate_time(create_time);
        return this;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public RunfastRefund withUpdate_time(Date update_time) {
        this.setUpdate_time(update_time);
        return this;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public Integer getAmount() {
        return amount;
    }

    public RunfastRefund withAmount(Integer amount) {
        this.setAmount(amount);
        return this;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public String getRefund_no() {
        return refund_no;
    }

    public RunfastRefund withRefund_no(String refund_no) {
        this.setRefund_no(refund_no);
        return this;
    }

    public void setRefund_no(String refund_no) {
        this.refund_no = refund_no == null ? null : refund_no.trim();
    }

    public String getDescription() {
        return description;
    }

    public RunfastRefund withDescription(String description) {
        this.setDescription(description);
        return this;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public String getFailure_code() {
        return failure_code;
    }

    public RunfastRefund withFailure_code(String failure_code) {
        this.setFailure_code(failure_code);
        return this;
    }

    public void setFailure_code(String failure_code) {
        this.failure_code = failure_code == null ? null : failure_code.trim();
    }

    public String getFailure_msg() {
        return failure_msg;
    }

    public RunfastRefund withFailure_msg(String failure_msg) {
        this.setFailure_msg(failure_msg);
        return this;
    }

    public void setFailure_msg(String failure_msg) {
        this.failure_msg = failure_msg == null ? null : failure_msg.trim();
    }

    public String getOrder_no() {
        return order_no;
    }

    public RunfastRefund withOrder_no(String order_no) {
        this.setOrder_no(order_no);
        return this;
    }

    public void setOrder_no(String order_no) {
        this.order_no = order_no == null ? null : order_no.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public RunfastRefund withStatus(Integer status) {
        this.setStatus(status);
        return this;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Boolean getSucceed() {
        return succeed;
    }

    public RunfastRefund withSucceed(Boolean succeed) {
        this.setSucceed(succeed);
        return this;
    }

    public void setSucceed(Boolean succeed) {
        this.succeed = succeed;
    }

    public Date getTime_succeed() {
        return time_succeed;
    }

    public RunfastRefund withTime_succeed(Date time_succeed) {
        this.setTime_succeed(time_succeed);
        return this;
    }

    public void setTime_succeed(Date time_succeed) {
        this.time_succeed = time_succeed;
    }

    public String getTransaction_no() {
        return transaction_no;
    }

    public RunfastRefund withTransaction_no(String transaction_no) {
        this.setTransaction_no(transaction_no);
        return this;
    }

    public void setTransaction_no(String transaction_no) {
        this.transaction_no = transaction_no == null ? null : transaction_no.trim();
    }

    public Integer getOrder_id() {
        return order_id;
    }

    public RunfastRefund withOrder_id(Integer order_id) {
        this.setOrder_id(order_id);
        return this;
    }

    public void setOrder_id(Integer order_id) {
        this.order_id = order_id;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", create_time=").append(create_time);
        sb.append(", update_time=").append(update_time);
        sb.append(", amount=").append(amount);
        sb.append(", refund_no=").append(refund_no);
        sb.append(", description=").append(description);
        sb.append(", failure_code=").append(failure_code);
        sb.append(", failure_msg=").append(failure_msg);
        sb.append(", order_no=").append(order_no);
        sb.append(", status=").append(status);
        sb.append(", succeed=").append(succeed);
        sb.append(", time_succeed=").append(time_succeed);
        sb.append(", transaction_no=").append(transaction_no);
        sb.append(", order_id=").append(order_id);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}